<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
	
	
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<title>crm</title>
	<!--[if lt IE 9]>
	  <script src="js/html5.js" type="text/javascript"></script>
  <![endif]-->
	<!--[if IE]>
		<script type="text/javascript" charset="utf-8">
			window.onload = function() {
				$('input, textarea').placeholder();
			}
		</script>
	<![endif]-->
	<link href="css/application-766336123a9b61bedf26182718c02860.css" media="all" rel="stylesheet" type="text/css">
	<script type="text/javascript" async="" src="js/ga.js"></script><script src="js/application-e8369d8531953caeeedd0118548cdc1c.js" type="text/javascript"></script>
	<meta content="authenticity_token" name="csrf-param">
<meta content="4NAq56gfzq9IhDJLLR4pUWgQs7xLI5nFWq6+6mYHmUA=" name="csrf-token">
	
	
<style type="text/css" media="screen">
	div.select_access_policy .scope {
		margin:2px 0;
	}
	div.select_access_policy .scope .editor {
		display:none;
	}
	div.select_access_policy .activated .editor {
		display:block;
		margin:2px 15px;
	}
	div.select_access_policy .hide {
		display:none;
	}
</style>

<style type="text/css" media="screen">
	div.new_note_form_basics div.right {
		float: right;
	}
	div.options{
		border-bottom: 1px dashed #CCCCCC;
		padding-bottom: 5px;
		margin-bottom:10px;
	}
	div#email_note_container{
		margin-bottom: 10px;
	}
	.subscribers {
	    list-style: none outside none;
	    margin-left: 0;
	    overflow: hidden;
	}
	.subscribers li {
	    float: left;
	    width: 150px;
	}
</style>

	<script type="text/javascript" charset="utf-8">
		$(document).ready(function() {
			$('#search').marcoPolo({
			  url: '/search',
			  formatItem: function (data, $item) {
			    return data.icon + data.name;
			  },
			  onSelect: function (data, $item) {
					if (data.url != '#') {
						$('#search').val(data.name);
				    window.location = data.url;
					}
			  }
			});
			
			validate_form('#task_form', true)
			
			$('a.zoom').fancyZoom({scaleImg: true, closeOnClick: true})
			
			$('#search-link').data('tooltip').options.placement = 'bottom';
		});
		
		$(document).scroll(function(){
	    if ($('.back-top').attr('data-top') <= $(this).scrollTop())
        $('.back-top').removeClass('hide');
	    else
        $('.back-top').addClass('hide');
		});
		
	</script>
</head>

<body class="crm">
	<div class="navbar navbar-fixed-top">
  	<div class="navbar-inner">
	  	<div class="container-fluid">
				<a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
					<span class="icon-bar"></span>
					<span class="icon-bar"></span>
					<span class="icon-bar"></span>
				</a>
				<a class="brand" href="home.action"><img alt="Workxp-logo" src="img/workxp-logo-68b281b82e899ff436ecf42ebcc1bc58.png"></a>
				<div class="nav-collapse">
		  		<ul class="nav">
						<li class="divider-vertical"></li>
						<li class="active"><a href="#">最新动态</a></li>
						<li class=""><a href="contact/list.action">联系人</a></li>
						<li class=""><a href="task/task.action">任务</a></li>
						
						<li class=""><a href="deal/list.action">机会</a></li>
			    </ul>
					
					<ul class="nav">
					  <li class="dropdown">
							<a href="https://1344267101.workxp.info/dashboard#" class="dropdown-toggle" data-toggle="dropdown">
						    添加
						    <span class="caret"></span>
						  </a>
						  <ul class="dropdown-menu new-actions">
						    <li><a href="contact/addcontact.action"><i class="icon-person"></i> 联系人</a></li>
								<li><a href="contact/addcompany.action"><i class="icon-company"></i> 公司</a></li>
								<li class="divider"></li>
								<li><a href="task/addtask.action"><i class="icon-ok"></i> 任务</a></li>
								<li><a href="deal/adddeal.action"><i class="icon-dollar"></i> 机会</a></li>
						  </ul>
						</li>
					</ul>
					<ul class="nav">
						<li class="divider-vertical"></li>
					</ul>
					<form class="navbar-search">
						<input type="text" name="search" id="search" class="search-query mp_input" placeholder="搜索联系人或机会" autocomplete="off" x-webkit-speech="" style="height:30px;"><ul class="typeahead dropdown-menu mp_list" style="display: none; "></ul>
			    </form>
					
					<ul class="nav">
						<li><a href="https://1344267101.workxp.info/notes/search" rel="tooltip" id="search-link" data-original-title="搜索事件"><i class="icon-cog"></i></a></li>
					</ul>
			
					<ul class="nav pull-right">
						<li class=""><a href="https://1344267101.workxp.info/profiles">${sessionScope.user.username }</a></li>
						
								<li class="dropdown">
									<a data-toggle="dropdown" class="dropdown-toggle" href="https://1344267101.workxp.info/dashboard#">管理 <b class="caret"></b></a>
									<ul class="dropdown-menu settings">
										<li><a href="https://1344267101.workxp.info/product_users"><i class="icon-user"></i> 同事</a></li>
										<li><a href="https://1344267101.workxp.info/groups"><i class="icon-group"></i> 组</a></li>
										<li class="divider"></li>
										<li><a href="https://1344267101.workxp.info/settings"><i class="icon-cog"></i> 帐号</a></li>
									</ul>
								</li>
						
						<li class="divider-vertical"></li>
						<li class=""><a href="logout.action">退出</a></li>
			    </ul>
				</div>
		  </div>
	  </div>
  </div>

	
	<div class="container-fluid">
		<div class="row-fluid">
			<div class="span8">
				<div class="well screen">
					<div class="page-header header">

						
						
	
	最新动态

					</div>
					<div class="live_search_spinner" behavior="spinner" id="parties_loading">
					  <div class="liner">
					    <h3>处理中...</h3>
					    <img src="img/indicator.gif" alt="WorkXP">
					  </div>
					</div>
					<div class="main" id="main">
						


	<p>你在忙什么？记录与分享工作生活的点滴。</p>
	<div>
	<form accept-charset="UTF-8" action="####" class="simple_form new_note"  id="note-form" method="post" >
	<div style="margin:0;padding:0;display:inline">
	<input name="utf8" type="hidden" value="✓" x-webkit-speech="">
	<input name="authenticity_token" type="hidden" value="4NAq56gfzq9IhDJLLR4pUWgQs7xLI5nFWq6+6mYHmUA=" x-webkit-speech="">
	</div>
		
		<div class="control-group text required"><div class="controls">
		<textarea class="text required content" cols="40" id="note_content" name="note[content]" rows="20"></textarea>
		</div>
		</div>
	
		<div class="new_note_form_basics">
			<div class="submit right">
				<input class="btn btn-primary" data-loading-text="处理中.." name="commit" type="submit" value="保存" x-webkit-speech="">
			</div>
			
		</div>
</form></div>

<br>
<br>



<div id="activities">
			<div class="alert alert-info">
				<p>目前还没有动态</p>
					这里为您展示团队的最新动态，比如与客户有过什么联系，业务机会有什么进展，同事完成了什么工作等。<br>您可以在右侧快速添加一个任务，查看您的日程安排，或者添加一个联系人。
		  </div>
			<img src="img/workxp-sample-dashboard.png" class="bird">
</div>

<style type="text/css" media="screen">
	#active-users {
		margin-top: 10px;
	}
	#active-users .user {
		display: inline-block;
		margin: 0px 5px 5px 0px;
		width: 32px;
		vertical-align: top;
	}
</style>
					</div>
				</div>
			</div>
			<div class="span4 sidebar">
				
		<div class="well">
			<div class="title">最近访问的同事</div>
			<div id="active-users" class="clearfix">
					<div class="user">
						<a rel="tooltip" href="https://1344267101.workxp.info/people/813479" data-original-title="承诺风光好"><span style="display: inline-block;background: url(&#39;/assets/workxp_sprites.png&#39;) no-repeat -112px -148px transparent; width: 32px; padding-top: 32px;font-size:1px"></span></a>
					</div>
			</div>
		</div>
	
	<div id="tasks_div" class="well"><div class="title">
	<span><a data-toggle="modal" href="https://1344267101.workxp.info/dashboard#taskModal" data-backdrop="static">添加任务</a></span>
	您的待办任务
</div>
<div id="upcoming_tasks">
	<div id="screen_body">
	
	
	
	
	
	
</div>


</div>
</div>
	<script type="text/javascript" charset="utf-8">
		$.get('/tasks', function(data) {
			$('#tasks_div').html(data);
			ContactQuickShow.init();
		}, 'html');
		$("#context").val("tasks");
	</script>

			</div>
		</div>
	</div>
	
	


<script type="text/javascript">

  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-8052682-4']);
  _gaq.push(['_setDomainName', '.workxp.info']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })()};
	
</script>
<div id="zoom" style="display:none;">           
        <table id="zoom_table" style="border-collapse:collapse; width:100%; height:100%;">  
		<tbody>                    
		<tr>                       
		<td class="tl" style="background:url(/assets/fancy_zoom/tl.png) 0 0 no-repeat; width:20px; height:20px; overflow:hidden;"></td>        
		<td class="tm" style="background:url(/assets/fancy_zoom/tm.png) 0 0 repeat-x; height:20px; overflow:hidden;"></td>             
		<td class="tr" style="background:url(/assets/fancy_zoom/tr.png) 100% 0 no-repeat; width:20px; height:20px; overflow:hidden;"></td>       
		</tr>            
		<tr>             
		<td class="ml" style="background:url(/assets/fancy_zoom/ml.png) 0 0 repeat-y; width:20px; overflow:hidden;"></td>     
		<td class="mm" style="background:#fff; vertical-align:top; padding:10px;">     
		<div id="zoom_content"></div>          
		</td>                    
		<td class="mr" style="background:url(/assets/fancy_zoom/mr.png) 100% 0 repeat-y;  width:20px; overflow:hidden;"></td>    
		</tr>           
		<tr>                
		<td class="bl" style="background:url(/assets/fancy_zoom/bl.png) 0 100% no-repeat; width:20px; height:20px; overflow:hidden;"></td>     
		<td class="bm" style="background:url(/assets/fancy_zoom/bm.png) 0 100% repeat-x; height:20px; overflow:hidden;"></td>     
			<td class="br" style="background:url(/assets/fancy_zoom/br.png) 100% 100% no-repeat; width:20px; height:20px; overflow:hidden;"></td>       
		</tr>             
        </tbody>               
		</table>             
		<a href="https://1344267101.workxp.info/dashboard#" title="Close" id="zoom_close" style="position: absolute; top: 0px; left: 0px; display: none; ">      
		<img src="img/closebox.png" alt="Close" style="border:none; margin:0; padding:0;">  
		</a>        
		</div>
		<div id="quick-show-window"><div class="quick-show-content">
		</div>
	</div>
</body>
</html>